package Synchronized;

public class demo8 {

@FunctionalInterface
    interface delete{
        void delete();
    }
    @FunctionalInterface
    interface delete1{
        void delete(int a);
    }@FunctionalInterface
    interface delete2{
        void delete(int a,int b);
    }@FunctionalInterface
    interface delete3{
        void delete(int a,String s);
    }
    public static void main(String[] args) {
        delete NoParameterdelete = ()->{
            System.out.println("没有参数的接口");
        };
        delete1 OneParameterdelete = (a)->{
            a = 1;
            System.out.println("一个参数的接口,参数为："+a);
        };
        delete2 TwoParameterdelete = (a,b)->{
            a = 1;
            b = 2;
            System.out.println("两个参数的接口，参数为："+a+" "+b);
        };
        delete3 WithStringParameterdelete = (a,string)->{
            a = 2025;
            string = "hello world";
            System.out.println(a+" "+string);
        };
    }
}
